#!/bin/bash
echo "####if else"
echo "input two number a and b"
read a
read b

if (($a >= $b));then
	echo "a bigger then b or a equals b"
fi

if (($a > $b));then
	echo "a bigger then b"
else
	echo "b bigger then a or b eqauls a"
fi

echo "input age"

read age
if (($age>=0 && $age<=125));then
	if (($age<20));then
		echo "少年"
	elif (($age<30));then
		echo "青年"
	elif (($age<50));then
		echo "中年"
	elif (($age<100));then
		echo "老年"
	else 
		echo "wtf"
	fi
else
	echo "age is illegal!"
fi


echo "####case in"
echo "input a character"

read char

case $char in 
	[a-z])
		echo "is lower word"
		;;
	[A-Z])
		echo "is higher word"
		;;
	[0-9])
		echo "is number"
		;;
	[.,!?])
		echo "is punctuation"
		;;
	*)
		echo "other character"
		;;
esac
		

